package com.ingesup.caribou.client;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector;

import com.ingesup.caribou.server.generator.Objet3D;

public class ObjectManagement {
	private HashMap <String, Objet3D> objectByNames = new HashMap <String, Objet3D> ();

	ObjectManagement(Vector <Objet3D> o){
		Iterator i = o.iterator();
		while(i.hasNext()){
			Objet3D obj = (Objet3D) i.next();
			objectByNames.put(obj.getNomObjet3D(), obj);
		}
	}

	public HashMap<String, Objet3D> getObjectsList(){
		return objectByNames;
	}
}
